#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;

const ll N = 1e6 + 10, MOD = 1e9 + 7;

ll n;
ll b[N];

ll inv(ll a, ll b)
{
    ll res = 1;
    while (b) {
        if (b & 1) res = (res * a) % MOD;
        a = (a * a) % MOD;b >>= 1;
    }
    return res;
}

void solve()
{

    cin >> n; n *= 2;
    for (ll i = 1;i <= n;i++) cin >> b[i];
    sort(b + 1, b + n + 1);
    ll ans = 0;
    for (ll i = 1;i <= n;i++) {
        ll x = (i + 1) / 2;
        ans = (ans + x * 100 * inv(b[i], MOD - 2) % MOD) % MOD;
    }
    cout << ans;

}

signed main()
{
    // ios::sync_with_stdio(0);
    // cin.tie(0);cout.tie(0);
#define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
    std::istringstream in(R"()");
    std::cin.rdbuf(in.rdbuf());
#endif
    ll T = 1;
    //cin>>T;
    for (ll i = 1;i <= T;i++) {
        solve();
    }
}